current=`pwd`;
currtime=`echo $(date +%Y-%m-%d\ %H:%M:%S)`
echo "-------$currtime-------" >> $current/check.log;
#echo "currentdir is $current" >> $current/check.log;
rm -rf $current/test;
git clone --depth 1 git@gitee.com:iborder/test.git;
if [ -d "$current/test" ]; then
  cd $current/test;
  ls -ltr
  content=`sed -n '1,1p' README.md`;
  if [ "$content" = "start" ]; then
    \cp -r $current/check.sh $current/test/
    echo "start Wake-on-LAN" >> $current/check.log;
	  /usr/bin/etherwake -i br-lan 6c:02:e0:6f:33:df;
	  echo "start complete">README.md;
	  git add .;
	  git commit -m "start complete";
	  git push;
  fi
else
    echo "git clone fali" >> $current/check.log;
fi
echo "------end------" >> $current/check.log;
